Previous Thread
Next Thread
Print Thread
Rate Thread
#109329 03/30/2002 9:10 PM
Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
I'm currently working on upgrading my board from 6.05 to 6.2.1.1 and I am working with a test board for now.

Test board: http://dbzcenter1.netfirms.com/cgi-bin/ultimatebb.cgi

Things are going relatively smoothly, except that in the upgrade, my CSS style stopped changing all the fields to my specific colors, etc. that I had before.

Current board forum page (notice that the 'go' buttons next to the hop to and show topics from boxes are blue as they should be): http://www.thorongil.com/~dbzcenter/cgi-bin/ultimatebb.cgi?ubb=forum&f=1

Test board forum page (notice that the 'go' buttons are not blue): http://dbzcenter1.netfirms.com/cgi-bin/ultimatebb.cgi?ubb=forum;f=1

I also have this problem with single line text fields. I played around with it a bit, and got the multiline text field to work properly, because it uses its own unique identifier 'textarea'. I would have provided a link to a new topic page or something so you could see exactly what I mean, but that would require you to register and I don't think you wanna take that much time.

Anyway, the single line text field shares an identifier 'input' with radio buttons. So if I apply my CSS style to all input objects, I get some really strange looking radio buttons.

My question is this: How can I make the single line text fields conform to my CSS specifications like I have on my current board, without affecting the radio buttons?

I assume that some form of if statement written in Javascript would do the trick, but I don't know what it would be...

If someone could please help, I would GREATLY appreciate it! Thanks a million! smile

Edit: Man, I'm having bad luck... I first posted this in Forum Design Integration, and THEN I noticed this forum where I proceeded to accidentally double post -_- Sorry, I'm just tired I guess...

Sponsored Links
#109330 03/30/2002 11:13 PM
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
Part of your problem is that you've got some style information outside of the page's HEAD. If you do a view source on the page, look to about line 100 or so, and you'll see what I mean. Put this code inside the "Header Insert:" section of your UBB™ style template, but nowhere else.
Code
[/code]I also combined some classes for you in order to streamline your stylesheet a bit.  

Now, yes, you will have to do a bit of manual template editing to get this to work, but it shouldn't be too heavy of a job. There's only a few files you'll have to modify. Wherever you want the class to take effect, you'll need to do this:
[code]
If you've got any more questions, I'll be around here somewhere, so just ask. smile

#109331 03/30/2002 11:21 PM
Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
So do you mean that I need to put the 'input class=styled' code into every form object on the UBB?

If not, what files do I need to edit?

#109332 03/30/2002 11:31 PM
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
No, you only need to add class="styled" to the INPUT elements that you want to inherit the styles. So I would say, judging from your situation, that you're probably only going to want to add the class to single-line text fields (and not all the message icon INPUT elements).

#109333 03/30/2002 11:40 PM
Joined: Jun 2001
Posts: 120
Member
Member
Offline
Joined: Jun 2001
Posts: 120
Alright, that shouldn't bee too tought... just the edit profile page, add topic page, reply page, edit page, poll pages, and maybe a couple others...

This will work with buttons as well, right? (i.e. 'go' buttons)

Sponsored Links
#109334 03/31/2002 12:06 AM
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
Hmm, no, not unless you apply the class to each button. In my opinion, the easiest way to do this would be to have the background color for all INPUT elements be the same as the message icon selection area.

Example:
[code][/code]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 547
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 12
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)